import { get, post } from './axios'
import qs from 'qs'

export function pageComment (params) {
  return get('/comment?' + qs.stringify(params))
}

export function insertComment (params) {
  return post('/comment', {
    content: params.content,
    replyID: params.replyID,
    replyName: params.replyName,
    replyAvatar: params.replyAvatar,
    parentId: params.parentId,
    articleId: params.articleId
  })
}
